Made weird tests python 3 compliant