python flatmap, formatting
proto adjustments for signals, python formatting