Fixed several annoyances with using python.