Create separate_statements.py

Function that takes any nested SQL SELECT statements and parses them into their individual statements.