add reverse.py used to transform kv files