python3 compatibilities