python simulator for polymer