To be compatable with python2