Rather than passing the type, can we use `type` to infer it? http://docs.python.org/2/library/functions.html#type