net: python3 support