faster CLI

Imports required for ipy_shell take a long time, so they are moved inside the function call.
For me this change brings down time needed for "starcluster" command from 0.45s to 0.25s.
pep8 fixes to make ./check.py pass
Merge branch 'faster-cli' into develop

closes gh-282