This is a security issue as passwords are stored unencrypted in this fule.
t's not clear what the best approach for this is, but the script should probably prompt for the password on first run and store it in the local machine's keychain. The keyring python library might be useful for this.