``type`` is a Python [built-in function](http://docs.python.org/2/library/functions.html) and shadowing/rebinding  those is considered a bad practice, I'd recommend using a different variable name