Bestpractices

This only works on Python 3! On Python 2, `type('')` is unicode here! We should use `compat_str`