add pyinfer

Usage: python pyinfer.py filename