added seeding
moved to python3