changed nc.variables.items -> nc.variables.iteritems to avoid copying lists and added get_global_attribute rapper for easy nc global attribute access.