Fluent User Defined Function Python