Fixed issue with video download referencing removed variable 'output' and corrected parse_qs library from urllib to urlparse