Merge pull request #24 from euanh/planexsc

Another batch of trivial pylint warning fixes
build: Check subprocess return codes

Pointed out (indirectly) by pylint's unused variable warning.

Signed-off-by: Euan Harris <euan.harris@citrix.com>
build: Extract SRPM build logic into a function

Signed-off-by: Euan Harris <euan.harris@citrix.com>
build: Fix more pylint whitespace warnings

Signed-off-by: Euan Harris <euan.harris@citrix.com>
build: Fix pylint variable name warnings

Signed-off-by: Euan Harris <euan.harris@citrix.com>
build: Remove srpmutil

The native Python RPM library in CentOS 6.4 works so we don't need
srpmutil any more.

Signed-off-by: Euan Harris <euan.harris@citrix.com>
build: Switch from deprecated md5 to hashlib

Signed-off-by: Euan Harris <euan.harris@citrix.com>
install: Remove demjson

Since Python 2.6, the standard library has included
a json module based on simplejson

Signed-off-by: Euan Harris <euan.harris@citrix.com>