Added Python prototype for graph based alignment