Pyexec fuckery

Please ignore the messed up history, it should still merge fine...