Adding NLU Inbox data to training data using python script

HI, I am currently working with rasa 2.0. While testing my bot lot of examples that are not in my training data come to the nlu inbox and I added them to my training data manually. I just want to know that Is it possible to do this using a python script. Can we add nlu inbox data to the training data automatically using the python program? Can Someone, please help me?