def parsePWDResponse(response):
 match = re.search('"(.*)"', response)
 if match:
  return match.groups()[0]
 else:
  return None

def parsePWDResponse ( response ) : match = re . search ( '"(.*)"' , response ) if match : return match . groups ( ) [ 0 ] else : return None
returns the path from a response to a pwd command .