Added a dict parameter to data_in and dealt with the consequences.