python. Split linking and validation, fixed #170.