A couple of months ago I spent a couple of days and whipped up this exceedingly simple Python colour blob tracker for a project of a friend. It is very simple but it should get the job done for applications that only need to track the image position of some simple coloured objects. Unlike much of my code, it is self-contained and I have made it to be easily usable and so it may be of use to someone.
It can be used standalone or from your python script and instructions are given on the repository landing page. You set it to learn a nearest-neighbour pixel colour classifier (where the exemplars are found by k-NN clustering) which it will then use to track image blobs (using a rather adhoc but computationally efficient method).
The code can be found here: