How to pause and wait for command input in a python script,pdb.set_trace()