Move do_caps to a hook
pep8
Fixed caps.py after a derp with  package renameing