patman: Convert camel case in tools.py