Use Effect With Empty Array Python Initialize Dictionary