def storage_factory(klass, location, base_url):
 return klass(location=location, base_url=base_url)

def storage_factory ( klass , location , base_url ) : return klass ( location = location , base_url = base_url )
this factory returns an instance of the storage class provided .