Implement NameCrypto test in Python