Using the Python API in the nanowire application example