general python convention, import of local or within package imports are last. 
import python, numpy, scipy, .... statsmodels
statsmodels.compat is an exception, I think, should count as python