minor changes to script. Removed pdb and readline