Use Regex To Replace Characters In Python A Namespace Is Which Type