def _upload_sample(bin_path):
 print '[INFO] Uploading sample.'
 with io.open(bin_path, mode='rb') as handle:
  binary_data = xmlrpclib.Binary(handle.read())
 name = proxy.upload_file(binary_data, _get_token())
 return name

def _upload_sample ( bin_path ) : print '[INFO] Uploading sample.' with io . open ( bin_path , mode = 'rb' ) as handle : binary_data = xmlrpclib . Binary ( handle . read ( ) ) name = proxy . upload_file ( binary_data , _get_token ( ) ) return name
upload sample to windows vm .