Remove unnecessary check for pymode state in buffer scope.