Add python26 compatibility