Added support for specifying random seeds in Python tests