Making pythn 2.6 compatable