More AGI functions

Also update documentation making it more consistant for functions and
address pylint feedback.

Refactor unittests on how they pass args and remove duplicate code.

Change-Id: I0ddc5818a79fac7405fe0ca24ff49bcdb0ff2f42
Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com>
Another round of AGI functions

Change-Id: I63bfb2226b912a663ebe3aa787e8d671bf014dd0
Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com>