PYTHON: Generate replica keypair
PYTHON: Fixes UTF8