Updated colour.py, correct buffering issues

Corrected buffering.