Adding a basic implementation in Python