py 3.0 bug fix