logrep clean-up

- flake8 compliance
    - whitespace
    - line length
    - "in" instad of "has_key()"
    - repeated includes
    - etc.
- consistent use of quotes (standardized on double quotes)
- reorganized variables to top of file
Clean-up. Python 2.6+ now req. Dropped -g/-v.

- dropped support for python < 2.6
- dropped deprecated "-g" grep_filter
- dropped deprecated "-v" grep_exclude
- changed PEP0263 encoding line to vim
- flake8 clean-up
  - whitespace
  - unused inports
  - etc.
- consistent use of quotes (standardized on double quotes)