Make files play nicely with Flask