add --legend option
use urllib2 so that we can get files from gistemp