Added Reference for future rewrite, commented out the main part of the code, because it requires a complete rewrite for python 3 support.