Fix selection formatting; Fix unicode libpath on windows for py2k

This patch also take cares of preceding indentation while formatting selection.