{} style set does not work in older python version