Python Check If Relative Path Definition