Python File Get Path Variable Vs Query