python script to generate post_processors along A-B segment