PEP8 and numpy scalar datatypes

Changed function names to be lower_case instead of camelCase. This
should not affect end users, only the lower level functions.

Also added support for numpy scalar datatypes in dictionaries.