Disallow modules or classes in functions