only activate autopair in python-mode