Use next(reader) rather than reader.next() to make Python 3.x happy.