Remove main function from ipparse.py