add method to convert dict to object Gateway;
add Gateway member
make a test in util.py