fix return: python class-> javascript method