python get list of nested dictionary keys