Create benchmark.py

Contains functions that are used to benchmark functions or script code in python similar to the microbenchmarks package in R.