How to split train test data using python

Well you can run the above command from Python:

import os
os.system('cmd /c "rasa data split"')