py: Add framework for built-in "type()" function.