def sm(self, b, a):
    ' Quick multiplication between a field element a and a scalar b\n        '
    return FieldElem(((gmpy.mpz(b) * a.val) % self.p), self)
Quick multiplication between a field element a and a scalar b
def sm(self, b, a):
    ' \n        '
    return FieldElem(((gmpy.mpz(b) * a.val) % self.p), self)