How to do AUTOMATIC DIGITIZATION of map image using python

I want to do automatic digitization of a map image using python like i have a georeferenced tiff image i want to take this into raster to vector like shp or kml automatically.
Can anyone please help me