Initial python code, but not tested yet.
Nuke this
Use a list instead of a string - later we should look at maybe using a deque or something?
Latest code. Works.