Encode seed() to be py3 complaint