Fixed some py3 protability issues.
Removed debugger call hanging around.