missing self
history -> sample_history
missing references
missing hmc arg
for some reason the functions fail to find 'np' and 't' when imported abov their levels, only when run from nosetests and not when run directly