Adds new header option "enableScanInQuery" and removes JPath query

1) Adds support for a new header option "enableScanInQuery"
2) Removes JPath query
3) Fixes python.pyproj file
4) Uses attachment id instead of media id in the UpdateMedia method.