Single quotes instead of tics
PEP8: Use isinstance(name, unicode)
Remove some whitespace