Array Push Two Values Javascript Substring Function In Python