Initial working version. Based on refactored code from https://github.com/twdb/pyhat and https://github.com/twdb/hydrotools