I used the following part of code in order to download GTFS-RT data. This code was successfully used many times:
from google.transit import gtfs_realtime_pb2 impo