move code from old django app for keepsake