convert NS* types to built-in python types