What I am trying to do is extract elevation data from a google maps API along a path specified by latitude and longitude coordinates as follows:
from urllib2
Once you have the flattened DataFrame obtained by the accepted answer, you can make the columns a MultiIndex ("fancy multiline header") like this:
DataFrame
MultiIndex
df.columns = pd.MultiIndex.from_tuples([tuple(c.split('.')) for c in df.columns])