Generate styles
py2 compability