Wrap tools.c as a Python extension module.

Comment out tools.common_map, which has never been tested/used.

Add a simple unit test for the climat operators / partial sums.