Python Dict As String Python Functions