How To Create 3d Array In Python Using Global Variables