Python 3 version of Sampy