fatcows, thincows = {}, {}
for name, weight in list(cows.items()):
    (fatcows if weight > 50 else thincows)[name] = weight
elegantly splitting a list (or dict) into two via some arbitrary function in python