Change name of API endpoint config option to twisted_endpoint to avoid confusion with other kinds of endpoints.
PEP8 fixes.