Some functionalities in Python using dot notatio, regex and json