small fixes and py32 support