Add setup.py
Flush standart output after every step
Explicitly cast float to int for Python 2 compatibility
Restructure constants