Add generic from_python scalar converters

This enables the acceptance of numpy types such as numpy.int64 as
parameters to functions taking C++ integers or floats.