[python] Get path from open file in Python