A function that creates a path
def generate_path(self): path = '/path/'+self.object_specific_path if not os.path.exists(path): os.makedirs(path) return path