Created standalone python (.py) version of capture script