Python String With Variable Inside A Variable Defined Inside A Function