shapelib now has a hook to set your own atof function. Before opening or creating a DBF file, atof is now set to PyOS_ascii_atof See libaries/pyshapelib/ChangeLog