Passing files as objects instead of a bunch of args and kwargs