Create bubble.py

This has some bugs which need fixing.
Merge pull request #1 from ams-bjones/patch-2

Create bubble.py