The MMTF python API is available from pip:

$ pip install mmtf-python
Then you'll get the the latest version of a mmtf python module from the Python Packaging Index.

Getting structures in MMTF format

You can fetch data in MMTF format though the Python API as follows.

 from mmtf import fetch

 # Get the data for 4CUP
 decoded_data = fetch("4CUP")

 # Print the number of chains
 print("PDB Code: " +str(decoded_data.structure_id)+" has "+str(decoded_data.num_chains)+" chains")
Refer to API documentation for more information.