Can I use type as a name for a python function argument?
type
def fun(name, type): ....
You can, but you would be masking the built-in name type. So it's better not to do that.