faster CLI

Imports required for ipy_shell take a long time, so they are moved inside the function call in this PR.
For me (modern notebook with SSD) this change brings down time needed for "starcluster" command from 0.45s to 0.25s.