Python script used to seperate different parts of a URL