Upgrade python lib to use 'inf'