Python 3 helper classes