Match the length of some things to the real server's.
Use list comprehensions instead of manual creation

Also does some changes to use comprehensions and join instead of manually reimplementing it
Use lists instead of more roundabout methods
Pass list literals into functions to create gamespy message
Use list literals instead of constantly appending
More list literals (listerals?)
Take advantage of boolean operators
Take advantage of default bool conversions
Use the builtin string module instead of roll-your-own