':param api_key: pushbullet Key
:param on_push: function that get\'s called on all pushes
:param http_proxy_host: host proxy (ie localhost)
:param http_proxy_port: host port (ie 3128)'

def __init__(self, account, on_push=None, http_proxy_host=None, http_proxy_port=None):

    self._account = account
    self._api_key = self._account.api_key
    Thread.__init__(self)
    websocket.WebSocketApp.__init__(self, (WEBSOCKET_URL + self._api_key), on_open=self.on_open, on_message=self.on_message, on_close=self.on_close)
    self.connected = False
    self.last_update = time.time()
    self.on_push = on_push
    self.history = None
    self.clean_history()
    self.http_proxy_host = http_proxy_host
    self.http_proxy_port = http_proxy_port
    self.proxies = None
    if ((http_proxy_port is not None) and (http_proxy_port is not None)):
        self.proxies = {'http': ((('http://' + http_proxy_host) + ':') + str(http_proxy_port)), 'https': ((('http://' + http_proxy_host) + ':') + str(http_proxy_port))}
