A with statement is not at the module level only if it appears inside a function definition or a class definition. Am I forgetting something? Kiuhnm