This is a two-part question. The first is figuring out the out of range error.
Im using code straight from the Google API source.
import argparse import io