Add a gitignore.
Also ignore objs, pngs, mtls (products).
Ignore WAD files.
Clean up the whitespace
Remove unused imports.
Remove * import and from-namespace palette.

Remove * imports.

True up other demo scripts with new layout of omg.
Further clean up imports.
docstring format.
Scope in a main wad2obj's main.
use env to find the python interpreter
Add an argparse based argument parser / format docstring.
Compress loops into a comprehension.
Refactor and decomposition in objmap.  Also switch to a context manager.
Rename polygons_with_line_definitions.

Fixed a typo in the name.
Rearrange code to keep it to the left.

- Deep nesting in python tends to hurt readability, so I rearranged these
   blocks to minimize nesting.
Refactor chain-linking code.

- The previous algorithm had a lot of nesting and complicated loop-ending.
  I broke out code into a function and used a return statement to eliminate
that code and focus the code on the algorithm.
- I also PEP-8-ified some of the naming.
Refactor newmtl writing code.

It was copy/pasted, so I broke it into a function and made the text a
constant.
Refactor poly generation code.

- Pull out more copy/paste code.
Use enumerate instead of a manual counter for the polyindex list.

Python does this for us for free!
Small Cleanup.