Access Query Left Function Python