get this working on the mac with python 2.6