Premium Stream Connection Python Example The following Python snippet demonstrates how to establish a streaming connection to a Gnip PowerTrack or Firehose stream, using gzip compression.