Make hooks module import optional
Make hooks module import optional

There is no hooks module available when running the
extract_swift_flags.py locally, so making this import optional.

Change-Id: I65ebacd1e3e4cf66ece0a9fcbbc785d79278e8bb

openstack/openstack-doc-tools,openstack/openstack-doc-tools