fixed css class to use python style if statement