First stdlib, then 3rd party libs, then "own" modules (here: all astroquery imports). This makes the code more readable and is also the common convention and can be found in PEP 8.