Agent penalties

Use

from hamcrest import assert_that, has_entries

instead