On some searching online, I found that there are two different libraries for Python for the XBee.
Xbee Python Library
https://github.com/digidotcom/python-xbee
This seems to be official as it is released by the Digi.
Xbee 2.3.2
https://pypi.org/project/XBee/#description
This is from niolabs
But the Official documentation from the Digi XBee3 shows the examples from Niolab library, not the Digi official python library.
https://www.digi.com/resources/documentation/digidocs/90001539/#reference/r_at_command_example_mp.htm%3FTocPath%3DGet%2520started%2520with%2520MicroPython|MicroPython%2520examples|_____4
So now I am confused.
Which one is correct and I should follow for working.
I have,
Digi XBee3 ZigBee Mesh Kit, worldwide
and using Spyder3 for Python Scripting