added the shape_extract.py script v1