completing python3 compatibility