On lines 44-50?  `generate_public_and_private()` no longer accepts a Boolean argument, which determined whether pure Python or PyNaCl generated the ed25519 keys.  Generating ed25519 keys in pure Python is unsafe.  See pyca-ed25519 documentation.