Multiline String Python Print Variable If It Exists