make compatible with Python 3

Both pyproj and PIL (fork https://github.com/python-imaging/Pillow) is now available for Python 3.

Tested with Python 3.3 + Pillow 2.0 on Ubuntu and Python 2.6 + PIL 1.1.7 on Windows.
Older than Python 2.6 will probably not work.