dropbox/pynsot#93 introduced API Model Classes. This will eliminate a lot of error-checking and handling in the code here