Updated Python download address + some code refactoring.