Implement Python version (fully compatible)