python one line for loop dictionary