Made cotpmd5 work in python2 and python3
Use uint64 instead of int64
Various test otp fixes, hopefully correct now