Linda implementation with Python