Python version of Tim Hutton's artificial chemistry