Added play/pause/stop functions

Changes added to Python 2.7 version. Will merge with Python 3.3 version.
Merged changes from Python 2.7 version