which-class package Status bar will display the name of whichever class block your cursor is currently in. Currently works for python only.