changed module from 'math' to 'hmath' to deal with python wanting to import built-in math