move dict init code from getResourceTargetTotals to separate function
remove unused dict
cleanup (rename, pep8)