Simplified URL generation and PEP8 compliance.