try to support python3