Removed statistics module dependence because it is 3.4 exclusive.

Added custom implementation of variance() to account for this