Parse macros to objects instead of passing it as string all the way to t...

macros are stored as a string and passed on to the server. The server does not realize that the string contains a JSON object. If macros is passed as a Python object into the connection object, then the server gets it in the right format.