Python Get Dir From File Path Html