chomp for Python