quick Safebin.py, but more work required