python import from function into global namespace