Simple Queue in Python