This won't work in a module, as "File" is a restricted class.