Make apply_resources.py a bit more pythonic
Move example into examples dir
Add argument parsing