Update literals.py

refactored