cleaned up stuff to match real API, followed PEP8 better
fewer pointless variables
random clean-up
Merge pull request #1 from jkreft-usgs/master

works with actual API, follows PEP8