The OpenZGY Python API allows read/write access to files stored in the ZGY format. The main part of the API is here: