initial python3 compatibility