python hacks that I do for simple cases