Move hackish import inside the library
Make imports absolute
Pass in a config object, don't guess

Take a config object as an optional argument and resist the temptation to guess