Simple Python functions