Interacting with Python by function parameters in Python