Why does Python's readline.read_history_file not work from a script, but work interactively?
No sure if you've sorted this out. 
Just ran into it myself. I can get around this my making the python history file visable.

eg: > cp .pyhistory -> pyhistory