Use six.callable for compatibility with Python 3.1