protect tests from logpy with import_module
clean up imports
logpy.unify -> logpy.unification
import variables from logpy directly