I don't work with Keras myself, so I'm not sure why you can't call the first .ml file.

Maybe Petra or someone else can comment on your most recent code?