First attempt to support Python 3