Some 'return' statements were missing from the experimental python code