A secret sharing implementation in Python