Python filechecker