Why not `$(pwd)/$1` ?  Invoking python for this seems rather heavyweight.