Switched userprofile to user
Added py3 support for str(model)