fixed bug, length agis returned from _sanitise_agi, not is None
fixed bug in passing a str to _sanitise_agis, str now converted to list == [str]