Conform to PEP 8

sartoris/sartoris$ pep8 sartoris.py
sartoris.py:52:1: E302 expected 2 blank lines, found 1
sartoris.py:54:51: E231 missing whitespace after ','
sartoris.py:59:24: E701 multiple statements on one line (colon)
sartoris.py:171:64: E701 multiple statements on one line (colon)
sartoris.py:171:58: E231 missing whitespace after ','
sartoris.py:180:13: E128 continuation line under-indented for visual indent
sartoris.py:181:13: E128 continuation line under-indented for visual indent
sartoris.py:231:13: E128 continuation line under-indented for visual indent
sartoris.py:231:13: E125 continuation line does not distinguish itself from next logical line
sartoris.py:354:13: E128 continuation line under-indented for visual indent

Change-Id: Ibea81aef5b7decba2bf44e591ffd7e00df35b9c2
tox.ini file

tox is a nice python utility to run tests, it let you define isolated
environnement which run specific list of commands.

This patches defines the pep8 and pyflakes env which are both linting
tools. To run then run:

 tox -v -epep8
 tox -v -epyflakes

Or simply:

 tox

You will need the python-tox packages to be installed or get it from
pip.

Change-Id: Ief41419a7aa6fd4d69808b097f1e6b3a0f1d4b37
console script now uses the new 'cli' entry point

sartoris 'main' entry points require an argument which is not possible
using setuptools.  I am defining a new entry point named 'cli' which
takes no argument and in turn call 'main' with the system arguments.

The 'main' entry point is left unchanged and still require argument to
be passed to it.

Test plan:

	$ sudo python setup.py develop
	$ sartoris
	usage: sartoris [-q --quiet] [-s --silent] [-v --verbose] [method]
	sartoris: error: too few arguments
	$

Change-Id: Ia805543d6e3718f253caa0f1c1f815bb0a085724
misc minor fix up

undefined hook_dir
undefined DATE_TIME_TAG_FORMAT
Redefining built-in 'format'

Change-Id: I86e1c078a9b621ef7bd712ae903082730df36b11
Add. show_tag() method.

Change-Id: I38b04708330300b75ee1d32f5b7992399990a330
Fix. Call communicate() on Popen objects to block on preocess completion.

Change-Id: I7ba86b3f9ba8b5e1c9f3ae6b5484dd1754bc54a2
Fix. Popen calls fail when commands contain pipes. Fixed in diff().

Change-Id: I98bc4298fbc4ba924732533dcd9ad24ceef7327b
Fix. Popen calls fail when commands contain pipes. Fixed in show_tag().

Change-Id: Idb8fcbdb76eb0666b37558296b81aad7268ddc4a
Add. import reference to json module.

Change-Id: I69cdd4391f7aca53899dc0d9432c0d3e9595d499
Fix. stream for stdout, stderr in Popen call in show_tag.

Change-Id: I9205b6abe5b14cdb4ae18332f51afaa6b96d43a6
Fix. Pep-8 compliance.

Change-Id: Ib89532afcb61f45c81d05bef6f24016097d0fd0b