Implementation of symmetric order-preserving encryption in Python