# Plik b.py

def spam(text):
   print text, 'mielonka'
   

# Plik a.py

import b
b.spam('gumby')