making lmfit a module