import requests


class XForce(object):
    def __init__(self, api_key, api_password):
        self.base_url = 'https://api.xforce.ibmcloud.com'
        self.session = requests.Session()
        self.session.auth = (api_key, api_password)

    def get(self, *uri, **params):
        r = self.session.get('/'.join([self.base_url] + list(uri)),
                             params=params)
        r.raise_for_status()
        return r.json()

    def ipr(self, ip):
        return self.get('ipr', ip)

    def url(self, url):
        return self.get('url', url)

@@ -553,8 +553,77 @@
 ', url)%0A
+%0A    def malware(self, md5):%0A        return self.get('malware', md5)%0A

Add malware method to xforce client