Added .read() to extra_vars parameter as it is a File.