Functions And Variables In Python Rules