add a struct template to ease exposing std::pairs. Pretty much completely taken from http://wiki.python.org/moin/boost.python/HowTo#Dynamic_template_to-python_converters.