more python3 compatibility