Fixed keygen.py