first version of python sequence input --> JSON