Use the constant like:
`from mozillians.users.models.ExternalAccount import TYPE_TWITTER
if u.type == TYPE_TWITTER`