fixes correct parent target for right insertion in tree
fix pyflakes
Merge pull request #3025 from digi604/fix-3021

fixes correct parent target for right insertion in tree