Better Python shell

With thanks to kezabelle, FunkyBob and
http://dlo.me/archives/2014/09/08/pythonrc/ :)