Write Python script.

CURRENTLY DOES NOT WORK.