Use filename_or_fobj as parameter instead of filename and data