Update dimacs_parser.py

bug fixes,
todo: fix regex and list structures