Scheme implementation in Python