ported syntax to python3