reverted function assignment from lambda because of pep E731 (cherry picked from commit a8b4b5d)
reverted function assignment from lambda because of pep E731
(cherry picked from commit a8b4b5d)

CSC-IT-Center-for-Science/pouta-blueprints,CSC-IT-Center-for-Science/pouta-blueprints,CSC-IT-Center-for-Science/pouta-blueprints,CSC-IT-Center-for-Science/pouta-blueprints