py24 fix