The problem statement is: 
Given 2 python files 'A.py' and 'B.py' (modified A.py), is there a way we can find out the:
1.Added methods
2.Removed methods
3.Modified methods : (a) Change in method prototype (b) Change in method content
Similarly for classes(changed/removed/modified) as well.
My Solution:
I was thinking if i could use a good diff tool, and find out the added/removed/modified lines, i can parse them to find out the required details.
I tried with git-diff but it gives line-wise diff. So if a method got shifted because some other method was added before that, it shows the method as deleted from the original file and added in the later file.
I saw 'meld' gives good diff between files which i could use easily, but i could not find a way to programmatically capture the output of meld.
Please provide any follow up on my solution, or any other solution for the problem
FYI: I want to automate this as there are many such files. Also, this has to be done on a linux box.
Git can do that, check out github its exactly what you look for
Find difference between 2 python files