Removed an extra line in the definition of the file
Removed the redefintion of assert which was causing a clash with the standard use of the keyword in the python libraries
Switched to distutils