loads and dumps take string arguments. load and dump functions should be added taking stream arguments.