fixing python3 issues