main python for analyzer code