Python Avoiding Hard Coded Values