Python jumps to unexpected line, cannot explain why.
afstand1 = 3000 maxafstand = 10000
The first if statement jumps immediately to the last