functions vs methods in python - Search