human
Give me a Python program to print >>f, 'a' given the following:
I wrote the below code

    global FINISHED_COUNTER
    FINISHED_COUNTER = 0
    import time
    expected_lines = ['a', ('bbb' * 100), 'cc']
    total_threads = 50
    file_name = path_combine(testpath.temporary_dir, 'cp16623.txt')
    with open(file_name, 'w') as f:
        def write_stuff():
            global FINISHED_COUNTER
            global CP16623_LOCK
            for j in xrange(100):
                for i in xrange(50):
                    print >>f, 'a'
                print >>f, ('bbb' * 1000)
                for i in xrange(10):
                    print >>f, 'cc'
            with CP16623_LOCK:
                FINISHED_COUNTER += 1
        for i in xrange(total_threads):
            thread.start_new_thread(write_stuff, ())
        for i in xrange(total_threads):
            if (FINISHED_COUNTER != total_threads):
                print '*',
                time.sleep(1)
            else:
                break
        AreEqual(FINISHED_COUNTER, total_threads)

What's a good function header?
assistant
#Here is Python program to print >>f, 'a'
.

@skip('win32')
def test_cp16623():