Random Python tools to make things work better