IP.py: python IP Structure