code: def python(self, cmd):
          
          python_bin = self.cmd_path('python')
          cmd = '{0} {1}'.format(python_bin, cmd)
          return self._execute(cmd)
docs: Execute a python script using the virtual environment python.