fix for python 3.x and tinycss2 api change in v0,5