fixes #3; made python a little faster with numpy random array