Fix bug in the API

Setting timeline_colors and timeline_names in __init__ is wrong. This patch fixes that.

Reviewer: @onager