def sql_exec(self, sql_file): with settings(host_string=self.int_ip): run('pandora --update {} <{}'.format(self.name, sql_file))