Python module to investigate problem of getting k equal results in row in coin toss trial