finished single shot .py refactor