PEP8 checked main.py of density and made it able to run on ubuntu 14.04