Implement next() for Python 2.5
Update: try for issue #30 works for python >= 2.7.3