Adding a Python function