vars turns class var to dict