data = conn.get_metric_statistics(period=60, start_time=start, end_time=end,
    metric_name='NetworkOut', namespace='AWS/EC2', statistics='Average',
    unit='Megabytes', dimensions={'InstanceId': 'XXXXXX'})
print('data length: %d' % len(data))
data = conn.get_metric_statistics(period=60, start_time=start, end_time=end,
    metric_name='NetworkOut', namespace='AWS/EC2', statistics='Average',
    unit='Bytes', dimensions={'InstanceId': 'XXXXXX'})
print('data length: %d' % len(data))
How do I get the most recent Cloudwatch metric data for an instance using Boto?