Nasty port of ubuntu's python-greenlet to Python 3