os.urandom sometimes returns more bytes and its generally encouraged to use python3's `secrets` module. Also double64 encode to prevent messing up the environment variables with binary data