Using Variable In String Python Definition Function