The entire game or parts of it can be exported to JSON. This process is described in detail here: Exporting level / game / bonuses / lines to JSON
Importing a game or its levels from a JSON file is described here: Importing from JSON
The structure of the game JSON is described here: Game JSON structure
Instructions are described here: Generating JSON via Google Doc
For interacting with the API via Python, there is a library that can be found here