Move module imports to top of file