Python Check If Relative Path Html