Access Query Left Function Python Code