Need help to optimize below python code using dictionary comprehension. How can modify my code in such a way that using python special features
container_status = {}
active=[]
inactive=[]
not_found=[]
if containers:
for container in containers:
inspect_dict = cli.inspect_container(container)
state = inspect_dict['State']
is_running = state['Status'] == 'running'
if is_running:
active.append(container)
else:
inactive.append(container)
container_status= {'active':active,'inactive':inactive,'not_found':not_found }
print(container_status)```