makes tests python3 compliant