Connecting xbee s6b to wifi using python or C?


I have been stuck with this problem for a long time. I have a Beaglebone black connected across Rx/Tx of Xbee S6B and was successful in communicating with other modules (XbeeS6b) and controlling their ports from bealgebone. Now Im stuck with a problem where I want to connect to new network without connecting xbeeS6B to my workstation(PC windows 8.1) and with XCTU. Is there a way to do this with python or C ?