a class selector based on python