Change converted sh code to pythonic code