Fix various docs links

Fixing links in the docs of wcs, stat, config, constants for #1221. Also some PEP8 change.