add autopair for python mode & lua mode