Made apev2.py 2to3 compatible. Also made a few improvements using Python 2.4 compatible code.