Optimize imports and add option to ask for password for interactive input (spkane)