def save(self, obj, id_code):
        """
        Save an object, and use id_code in the filename
        obj - any object
        id_code - unique identifier
        """
        filestream = open('{0}/{1}'.format(self.data_path, id_code), 'w+')
        pickle.dump(obj, filestream)
        filestream.close()
def save ( self , obj , id_code ) : filestream = open ( '{0}/{1}' . format ( self . data_path , id_code ) , 'w+' ) pickle . dump ( obj , filestream ) filestream . close ( )
Save an object, and use id_code in the filename
        obj - any object
        id_code - unique identifier