Python script (closes #1)