Python Implementation
Doc Updated