Python 3 fixes in L1 menu generation
- filter method behaves differently in python 3 (can be called only once)
- dictionaries key order follows insertion
- json dump separators explicitly specified to create uniform behavior As a result L1 menus generated in python 2 and python 3 are now identical
Closes ATR-21075