I have already port it to Java, I can give you the source if you want. Or I could port it to python and then give you the code.Determining the region based off product code seems inaccurate as the documentation for some regions is incomplete or not confirmed. Getting the region from icon bin would make it a lot more accurate. I have the coding just not the know how to adapt it to Python.