Use plain python rather than python2.6; add some debugging code

Change-Id: I6234845950320ead798585c2c8c6b1429b134a1e
Reviewed-on: http://review.couchbase.org/38126
Reviewed-by: Chris Hillery <ceej@couchbase.com>
Tested-by: Chris Hillery <ceej@couchbase.com>