Added method for converting bool functions into pyplines