Personal, miscellaneous Python functions.