A module for simulating stock markets