Utilities and useful functions when using Python