Fix for custom lang mapping in st2

dict.items() is not available in Py2