Replaced tabs with 8 spaces, to solve tabs error in python 3.
Also, fixed print statement to have it working in python 3.
Replaced file() with open(), to open files.
Added preprocessor "if", since import_array() changed from void function
to int function in python 3.
PyString_* do not exist any more in python3, can be still used if
we include numpy/npy_3kcompat.h