Functions to make python more easier