Get Array Of Map Keys Javascript Substring Methods In Python List