bdisk.py: ugly but works first edtion