import hashlib


if __name__ == '__main__':
    s = 'ali'
    h = 1
    for c in s:
        x = hashlib.md5(c).hexdigest()
        print x, type(x), int(x, 16)
2a221e7fd3a28eed507b05ba99139b98f5a2bbd3
import hashlib


if __name__ == '__main__':
    s = 'ali'
    h = 1
    for c in s:
        x = hashlib.md5(c).hexdigest()
        print x, type(x), int(x, 16)