Helper function to print compressed paths and dictionary

print_compressed(x)