Bernoulli Random Variable In Python Mblock