Python 3 fixes

To run mr.developer with pyhton 3.3 I needed these fixes.