Do replacements in python rather than calling sed

- we don't have to be careful about sed syntax
- it should be faster than calling sed
A bit of code formatting
Changing the print to logger.warn()
Updating the log message
utils: Variable names in sed()

Renamed 'sources' -> 'file_handle'
Merge pull request #43 from KanoComputing/url-replace

Url replace