Python Get File Name From Path Strings In Javascript