Fix password_file into dict