I want to get the yarn application log in python, I know in cmd it can simply be done by "yarn logs -applicationId ${application ID}", but how to