Python text spinner class