Parsing command line for file input and then preforming manipulation on the file data. Python and PHP versions