Add a password_file method to simplify code in import_ks