Fix bugs in XbeePython and CloudSync