make things compatible with python3