Adaption to python3
- Running 2to3
- Reformat file