An easy way to play around with scripts is Jupyter notebook. The Dockerfile in this repository will install that along with the python STIX libraries, so that you can immediately start coding.
Building the image:
Running the image (Mac, Linux):
Running the image (Windows):
The above command will run the image in the current folder, which will be attached to the folder in the notebook.
After it's running, just copy and paste the URL and you should be good to go!