added python script for graph conversion