fixed python command
added logfile