minor code cleanup

based on common sense and PEP 8

Change-Id: Ibe3a956fb0aaf78c0691ada46d59c07354362e5c
Reviewed-on: http://review.couchbase.org/34106
Reviewed-by: Aaron Miller <apage43@ninjawhale.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>