Added a parser to the given parameter, now the script works with TPB urls.
Changed the name of the main_program function to xml_constructor.