added missing return in inf.bound() on python side