Filtering a list of citizens
I can't speak to the specifics of the problem, since I don't understand exactly what you're trying to do, but the general idea seems to be:


Filter citizen_list based on some critiera
Apply some transformation to each citizen in citizen_list


To make that clearer, we can rewrite the code this way:

def _transform_citizen(citizen):
    # ???

def _is_valid_citizen(citizen):
    return citizen['handle'] and citizen['citizen_number']

def citizens(citizen_list):
    return [
        _transform_citizen(citizen)
        for citizen in citizen_list
        if _is_valid_citizen(citizen)
    ]


This has several benefits. It will reduce multiple layers of indentation. It will give you two functions with focused criteria. And it will make it clear that citizens() is doing just a filter and a transformation on the input list.