On some searching online, I found that there are two different libraries for Python for the XBee.
Xbee Python Library
This seems to be official as it is released by the Digi.
This is from niolabs
But the Official documentation from the Digi XBee3 shows the examples from Niolab library, not the Digi official python library.
So now I am confused.
Which one is correct and I should follow for working.
Digi XBee3 ZigBee Mesh Kit, worldwide
and using Spyder3 for Python Scripting