Sql Access Median Function Python Syntax Error