how to convert a shapefile into a raster file using python

visit shbcf.ru