Python Script To Insert Data Into Table Using Select