def serializer(codec):
formats = {'<STR_LIT>': json,<EOL>'<STR_LIT>': pickle,<EOL>'<STR_LIT>': Storable}<EOL>return formats[codec]<EOL>
Create a serializer that support loads/dumps methods.
json and pickle are fully supported.
storable support read only.