Finished developing python shell

No junk and mode changes this time