Solutions in Python