python3 support in v2.1