improve lpa.py and implement copra lpa.

improve representation of graph
implement propagate and normalize operation of copra lpa