Rewrite, less code, no wget, stay within python.