half-assed changes to python (python is still pretty janky. needs love before use)