fix bug in python simulate method and argument parsing