While ZMAPI modules can be written without any libraries quite easily there are libraries available that reduce the amount of boilerplate in the code. List of libraries: zmapi-python