def send_to_scan(self):
        """Send file to VirusTotal scan.

        :returns: VT response code.
        """
        attr = {'apikey': self._api_key}
        files = {'file': open(self._file.path, 'rb')}
        res = requests.post(self._scan_url, data=attr, files=files)

        if res.status_code == 200:
            data = res.json()
            self._md5 = data['md5']
            return data['response_code']
Send file to VirusTotal scan.

        :returns: VT response code.
        
lisa/analysis/virustotal.py