removed extra output line (mistake in previous commit)
fix for old-style use of freqdist in which keys were assumed to be sorted
tweaked import of compat to avoid possible circular import
fixed incorrect tree initialization, now uses fromstring