Extended magento python api for core #1736

This patch has added python API which extends the API for the custom API
implementation for the magento extension.

Task ID: project-1735/task-1736
Review ID: 182001