Metimp is a project mainly written in Python, it's free.
A collection of simple classes for conversion of measurements between the metric and imperial systems
Metric to imperial and visa-versa formulae in Python.