def save_to_internal(self, data):
        """save
        """
        if self.filetype is "pickle":
            pickle.dump(data, open(self.location_internal, "wb"))
        elif self.filetype is "hickle":
            import hickle
            hickle.dump(data, open(self.location_internal, "wb"))
        else:
            raise ValueError(
                "Invalid filetype {} (must be {} or {})".format(
                    self.filetype, "pickle", "hickle"
                )
            )
def save_to_internal ( self , data ) : if self . filetype is "pickle" : pickle . dump ( data , open ( self . location_internal , "wb" ) ) elif self . filetype is "hickle" : import hickle hickle . dump ( data , open ( self . location_internal , "wb" ) ) else : raise ValueError ( "Invalid filetype {} (must be {} or {})" . format ( self . filetype , "pickle" , "hickle" ) )
save