Basic client reproduced in python, adding needed functions and wrapper code around macros

Change-Id: I5085f481f14fb054bc711b960cd9a3115e2c96ea