Add base_dir parameter.
Make it a single file module and add README.rst.