How to unpack dictionary if values are lists