Python3 compatibility

continuation of the action #21