Changes to getTransitions in PyGrimm

No errors, but ran for ~1 hour without terminating