small fixes for python26/33