fixed python3 issues