Not sure I understand the reasoning; I don't think imports of builtin modules such as os should cause a problem. If you definitely want to keep them inside the functions, they should probably at least be put in the form ```from os import blah```, IMHO