fix python validation
add tests for tile