So, after seeing quite a few people asking questions recently, and useful Python code snippets being posted (usually by the awesome mattseh) it seems we need somewhere to group them all together.
Rules:
	
		
			
		
		
	
				
			Rules:
- All code must be Python
 - Must state whether the code is for Python 2 or Python 3
 - If the code is huge, include some comments or at least a explanation
 - Post the actual code within the 
	
	
Code:
tags [*]Can include download / link if code is huge [/LIST] That's it I guess. Post what you have :)