fix imports.

also remove dependence on scipy
change function name getEnergy to get_energy

to comply with PEP8