add python mode and clear assoc
add python mode