Added config memory support

PS: it would be _really_ helpful if you could also merge the other pull
request which makes everything pep8/pyflakes compliant. If everyone uses the
same standard it makes working on other code that much easier :)