improve batman.py