comply with python3