Added #defines for Py_TYPE/REFCNT for python2.4.
Merge pull request #1426 from HapeMask/py3k-fixes

Added #defines for Py_TYPE/REFCNT for python2.4.
make int division in python 3.
Fix test in FAST_COMPILE and with floatX=float32
pep8
Merge pull request #1427 from nouiz/py3.3

Fix python code in python 3.3 and fix tests.