redshift python utilities