Use RESOLUTION_MILLISECONDS constant.
Add underscore to constant names.
Update comments in get_mem_used

Note:  We may add a dependency on pyutil instead
of reimplementing.
Make units explicit for get_mem_used.
make if elif whitespaces consistent with style
Handle unknown type as NotSupported exception.