fixed components property to work on py 3.x