Python: updated to version 3