Just some basic code in python for integration using the Simpson or Mid-Point Rule