'Initializes the API object.
Arguments:
key -- your API key'

def __init__(self, key):

    self.api_key = key
    self.base_url = 'http://www.shodanhq.com/api/'
    self.dataloss = self.DatalossDb(self)
    self.exploits = self.Exploits(self)
    self.exploitdb = self.ExploitDb(self)
    self.msf = self.Msf(self)
