@classmethod
def clean_data(cls, data_dict):
    """Splits the data into formdata and files"""
    files = dict()
    data = dict()
    for key, value in data_dict.items():
        try:
            file = value
            if type(value) == tuple and hasattr(value[1], 'read'):
                file = value[1]
                files.update({key: (value[0].split('/')[-1], file.read())})
            elif hasattr(file, 'read') and hasattr(file, 'name'):
                files.update({key: (file.name, file.read())})
            else:
                data.update({key: value})
        except Exception as e:
            data.update({key: value})
    as_json = not bool(files)
    return data, files, as_json
