How to attach a language server when :setf python?

I have noticed that when I start neovim like this:

nvim test.py

The language server protocol is attached to the buffer, but if I already have a new empty buffer and run:

:setf python

Neovim does not attach the LSP to the buffer.

How can I/we can solve this issue?