I think at some point Python might not have created the file automatically when opening it for writing. So the 'wc' is most likely a relic from my old high school days with Python.

Fixed in 7c145e857acf0341e63be922ac4679bde95fa371.