add keys for python mode