Follow

@syntax
This all can be done in bash much simplier than python (and faster too), so my guess is bash