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
Make use of context managers to safely close files
Just use a for loop instead of creating tons of wrapper functions
Get rid of an unneeded lambda
Merge pull request #25 from msoucy/ref/python/lists

Use Python list comprehensions and literals when possible
Merge pull request #26 from msoucy/ref/python/context-managers

Make use of context managers to safely close files
Merge pull request #27 from msoucy/ref/python/function-list

Just use a for loop instead of creating tons of wrapper functions
Avoid possible error if profile_data is not set
Fix error in gamestats server from recent changes
NAS: Prevent download path attack.
Fix some exceptions
Fixed error in handling data in gamestats
Storage: FriendInfo table for Mario Kart Wii.