PEP-8 changes, removed unnecessary imports (numpy/scipy), disabled norma...

...lization, and removed duplicate code.