Python Uniform Random Variable Expectation