scripts: script to parse resources back into a useful representation

This makes them into nicely formatted python dicts for playing with