Create an issue in Github.
        For JSON data returned by Github refer:
        https://developer.github.com/v3/issues/#create-an-issue

        :param title: title of the issue
        :param body: body of the issue
        :param labels: list of labels for the issue
        :returns: dict of JSON data returned by Github of newly created issue
        :rtype: `dict`

def create(self, title, body, labels):
        """Create an issue in Github.
        For JSON data returned by Github refer:
        https://developer.github.com/v3/issues/#create-an-issue

        :param title: title of the issue
        :param body: body of the issue
        :param labels: list of labels for the issue
        :returns: dict of JSON data returned by Github of newly created issue
        :rtype: `dict`

        """
        url = "https://api.github.com/repos/{}/{}/issues".format(
            self.user, self.repo)

        data = {
            'title': title,
            'body': body,
        }

        if labels:
            data.update({'labels': labels})

        response = self.session.post(url, json.dumps(data))

        assert response.status_code == 201
        return json.loads(response.content)