Why make it a method if it never uses self? If this as a function can work on files on its own it might actually be useful on its own, if not maybe it could be integrated into __init__, from where it is called only a single time?