more python3 compatibility changes