Moment Generating Function for Probability Distribution with Python