'Update or create remote organization from GitHub API response
:param fields: dictionary response of data from API
:rtype: RemoteOrganization'

def create_organization(self, fields):

    try:
        organization = RemoteOrganization.objects.get(slug=fields.get('login'), users=self.user, account=self.account)
    except RemoteOrganization.DoesNotExist:
        organization = RemoteOrganization.objects.create(slug=fields.get('login'), account=self.account)
        organization.users.add(self.user)
    organization.url = fields.get('html_url')
    organization.name = fields.get('name')
    organization.email = fields.get('email')
    organization.avatar_url = fields.get('avatar_url')
    organization.json = json.dumps(fields)
    organization.account = self.account
    organization.save()
    return organization
