Python test: added options to provide local data path

Porting of #3480 to master branch for compatibility. `--data` option is not used.