basic python rules
more idiomatic rules