def list_runs(client, year=None, data_periods=None):
    """List ATLAS runs.

	Args:
	    :client: the pyAMI client [ pyAMI.client.Client ]
	    :year: the year [ int | None ]
	    :data_periods: the list of data periods [ list<str> | None ]

	Returns:
	    an array of python dictionnaries.
	"""
    command = ['AMIListRuns']
    if year:
        command.append('-projectName="data%02i%%"' % (year % 100))
    result = []
    if data_periods:
        command.append('')
        for data_period in data_periods:
            command[-1] = '-period="%s"' % data_period
            result.extend(client.execute(command, format='dom_object').
                get_rows())
    else:
        result.extend(client.execute(command, format='dom_object').get_rows())
    return result
