Cleaning up and generalizing OBJ parser script