porting code to Python 3
refactoring tests to grant their execution in Python 3