Python 3 syntax compatible