key_commit: Fix to functions.py