python/path.py: Updated for version 5.3.

Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>