It is recommended to keep the imports at the top of the file, this will avoid recursive import surprises, it is also pep8.