Fix issue with writing str to file in python 3
Fix whitespace issue
Add tests for min/max values in collectd samples

Test that values outside the range defined in types.db are dropped
for all basic collectd types.

These tests currently fail. Even though CollectDTypes parses and
stores the min/max values for each type, the sample's value isn't
checked against those limits.
Collectd types bounds checking

Add a check_range method to CollectDServer to check that the
values fall within the permitted range as defined in types.db.
Fix whitespace issue