Python Code for TI CC1350

Hi Im really new to python programming and i am currently working on a project where I am suppose to write a python code to collect and display the packets transmitted between 2 CC1350 Transceivers. The CC1350 is USB connected and im not sure how to code a USB connected sensor using python. Hopefully you guys can be of help!