Apply a few Python niceties

Signed-off-by: Alex Nelson <a.nelson@prometheuscomputing.com>