Generate an xremap config with a Python DSL.
$ pip install xremap
This will install xremap-python
command.
$ xremap-python example/config.py > config.yml
$ sudo xremap config.yml
The gem is available as open source under the terms of the MIT License.