Pyhton based patch analysis tools