WIP: Tool execution tests.
Initial work on functional tests for the tools API.

Just tests some simple indexing and tool execution. Tons more one can and should test.
Some PEP-8 fixes for api/tools.py.
Some PEP-8 fixes for tools/__init__.py.
PEP-8 fixes to tools.parameters.
Some PEP-8 fixes to tools.parameters.basic.