Added python 3 support for mbox