Corrections for compatability with python 2.