Implement old windows in Python (#87082)
Relates to #85366
- Bartlett, Blackman, Hamming, Hann.
- Except Kaiser which will be in a different PR
Pull Request resolved: https://github.com/pytorch/pytorch/pull/87082
Approved by: https://github.com/mruberry, https://github.com/lezcano