Javascript Return Two Values Function Python