First pass at making AIPY compatible with Python3.  This is mainly done through changes to the various extensions that define version-specific macros that deal with the difference.  A few changes in the setup.py script are also needed.  This should get things to compile without error but more detailed testing is needed.