Fix broken sphinx

Fix all the the warnings and errors