This is a very complex - and interesting - system, which requires a lot of thought and considerations. Not least: how do you imagine this to form a transport system? What would be the electrode?
The algorithms they use can probably easily be reimplemented in Python, if you have all the details. Perhaps you can get those from the authors of the article (also don't forget to read Ref. 1).
I don't think anyone else can help you write the script, however, this is a big task.